package org.jw.wishlist.config;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author Jiawei Zhao
 */
@Configuration(proxyBeanMethods = false)
public class ItemSourceResolverAutoConfiguration {

  public static final String REST_TEMPLATE_NAME = "itemSourceRestTemplate";

  @Bean(REST_TEMPLATE_NAME)
  public RestTemplate restTemplate() {
    return new RestTemplateBuilder()
        .defaultMessageConverters()
        .build();
  }

}
